import ReactDOM from 'react-dom/client'
import { Provider } from 'react-redux'
import App from './App'
import './index.scss'
import store from './store'

// 1. 创建应用根实例
const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement)
// 2. 挂载渲染 App 根组件
root.render(
  <Provider store={store}>
    <App />
  </Provider>
)
